import { request } from '@/utils/request.js'

// 获取联想建议
export const getSuggestion = (keywords) => {
  return request({
    url: '/v1_0/suggestion',
    method: 'GET',
    params: {
      q: keywords
    }
  })
}

// 获取联想建议
export const getSearch = (keywords, page) => {
  return request({
    url: '/v1_0/search',
    method: 'GET',
    params: {
      q: keywords,
      page
    }
  })
}
